﻿using System.Collections;
using UnityEngine;

namespace Whoot
{
    public static class TaskExtension
    {
        public static T ExecuteNode<T>(this T selBehaviour, Task commandNode) where T : MonoBehaviour
        {
            selBehaviour.StartCoroutine(commandNode.Updater());
            return selBehaviour;
        }
    }
}